package config

import "time"

type Config struct {
	MysqlUrl string `config:"mysqlUrl"`

	Database string `config:"database"`

	TableName string `config:"tableName"`

	Fields string `config:"fields"`

	User string `config:"user"`

	UserPwd string `config:"userPwd"`

	Interval time.Duration `config:"interval"`

	BeatType int32 `config:"type"`
}

var DefaultConfig = Config{
	MysqlUrl:  "127.0.0.1:3306",
	Database:  "golangtestdb",
	TableName: "testbeat",
	Fields:    "*",
	User:      "root",
	UserPwd:   "123456",
	Interval:  10 * time.Second,
	BeatType:  1,
}
